const KEY = 'my-token-vant-mobile'
const key = 'hkzfHouseValue'

// 直接用按需导出，可以导出多个
// 但是按需导出，导入时必须 import { getToken } from '模块名导入'
// 获取
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 设置
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
}
// house 信息
// 设置token
// export const setHouse = (token) => {
//   localStorage.setItem(key, token)
// }
// // 获取token
// export const getHouse = () => {
//   return localStorage.getItem(key)
// }
// 存一个点击城市名字
export const setCityName = (name) => {
  return localStorage.setItem(key, name)
}
// 取
export const getCityName = () => {
  return localStorage.getItem(key)
}
// 删除
export const delCityName = () => {
  return localStorage.removeItem(key)
}
